package cn.pxy.ysframework.web.Repository;

import cn.pxy.ysframework.web.Entity.Category;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ICategoryDao extends JpaRepository<Category,String> {
    //返回所有分类
    List<Category> findAll();
    //分页返回分类
    Page<Category> findAll(Specification<Category> spec, Pageable pageable);
}
